/**
 * 
 */
package com.jiang.dao;

import java.sql.SQLException;
import java.util.Date;

import com.jiang.vo.Admin;

/**
 * @author Administrator
 * @管理员DAO接口，直接操作数据库表，无其他逻辑，逻辑部分在业务层写
 */
public interface IAdminDAO extends IDAO<String, Admin> {

	/**
	 * @根据用户名与密码查询用户
	 * @param aid
	 * @param password
	 * @return
	 * @throws SQLException
	 */
	public Admin doFind(String aid, String password) throws SQLException;
	
	public Boolean doUpdateLastDateTime(String aid, Date time) throws SQLException;
	
	public Boolean doUpdatePassword(String aid,String oldPassword, String newPassword) throws Exception;
	
}
